package com.ship.boats.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ship.boats.domain.SpBoatsMmsiChange;
import com.ship.boats.mapper.SpBoatsMmsiChangeMapper;
import com.ship.boats.service.SpBoatsMmsiChangeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <b>SpBoatsMmsiChangeServiceImpl</b>
 *
 * @description: SpBoatsMmsiChangeServiceImpl <br>
 * @date: 2024/4/7 15:17 <br>
 * @author: lhm <br>
 * @version: 1.0 <br>
 */

@Service
public class SpBoatsMmsiChangeServiceImpl extends ServiceImpl<SpBoatsMmsiChangeMapper, SpBoatsMmsiChange> implements SpBoatsMmsiChangeService {
    private static final Logger logger = LoggerFactory.getLogger(SpBoatsMmsiChangeServiceImpl.class);


    @Override
    public List<SpBoatsMmsiChange> queryBoatsMmsiByImo(String imo) {
        QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.eq("imo",imo);
        return baseMapper.selectList(queryWrapper);
    }
}
